//鼠标移动去切换导航标签
$(function () {
    layui.use(['table', 'form', 'laydate', 'element', 'layer', 'laydate'], function () {
        var $ = layui.$, layer = layui.layer
        $('.login').on('click', function () {
            login(layer)
        });
        $(document).on('click', '.btn', function () {
            alert('-------------')
        })
    })
})

function login(layer) {
    layer.open({
        closeBtn: 1,
        shade: [0.8, '#151b2d'],
        type: 1,
        anim: 1,
        area: ['30%', ''],
        content: $('#login-panel').html(),
        resize: false,
        move: false,
        title: false,
        yes: function (index, layero) {
            layer.close(index); //如果设定了yes回调，需进行手工关闭
        },
        success: function () {
        }
    });
}
